<script>
export default {
  name: "OnChatView",
  data() {
    return {
      token: '',

    };
  },
  methods: {
    kefu(){
      this.$router.push({ name: 'kefu', params: { id: this.token }})
    },
    onClickLeft(){
      this.$router.push({ name: 'shouye', params: { id: this.token }})
    },
    dingdan(){
      this.$router.push({ name: 'orderinfo', params: { id: this.token }})
    }
  },
  created() {
    this.token=localStorage.getItem('token')
    if (this.token == null) {
      this.$router.push('/')
    }
  }
}
</script>

<template>
  <div>
    <van-icon name="arrow-left" @click="onClickLeft"/>
    <van-grid>
      <van-icon size="50px" style="left: 10px" name="logistics" text="车况"  />

      <van-icon size="50px" style="left: 10px" name="balance-list-o" text="订单" @click="dingdan" />

      <van-icon size="50px" style="left: 10px" name="smile-comment-o" text="客服"  @click="kefu" />

    </van-grid>

  </div>

</template>

<style scoped>

</style>